<script setup>
 import { onMounted, ref} from "vue"
import {getjihua} from "../api/jiahua"

const tableData = ref()

 const qGetjiahua =()=>{

    getjihua().then(res  =>{
        console.log(res.data)
        tableData.value = res.data
        console.log(tableData)
    })
 }

 onMounted(()=>{
    qGetjiahua()
 })

</script>

<template>
    <div>今天需要生产的内容</div>
    <el-table :data="tableData" style="width: 100%">
    <!-- <el-table-column fixed prop="date" label="Date" width="150" /> -->
    <el-table-column prop="name" label="材料名称" width="250" />
    <el-table-column prop="chanpingId" label="产品编码" width="120" />
    <el-table-column prop="CtTime" label="CT时间" width="120" />
    <el-table-column prop="group" label="组" width="120" />
    <el-table-column prop="mach" label="生产设备" width="120" />
    <el-table-column prop="quantity" label="生产时间（小时）" width="150" />
    <el-table-column prop="count" label="生产片数" width="120" />
    <el-table-column prop="newCount" label="实际生产" width="120" />
    <el-table-column prop="date" label="生产日期" width="120" />


    <!-- <el-table-column fixed="right" label="Operations" width="120">
      <template #default>
        <el-button link type="primary" size="small" @click="handleClick">
          Detail
        </el-button>
        <el-button link type="primary" size="small">Edit</el-button>
      </template>
    </el-table-column> -->
  </el-table>
</template>

<style lang="scss" scoped>


</style>
